<include file="public:header" />
<div class="allpagetop">数据库<strong>/</strong>列表</div>
<div class="admin_main_nr_dbox">
 	    <div class="pagetit">
	        <div class="ptit">数据库</div>
				<div class="topnav">
			         <a href="{:RU('database/index')}" <if condition="ACTION_NAME eq 'index'">class="select"</if>>备份</a>
					  <a href="{:RU('database/restore')}" <if condition="ACTION_NAME eq 'restore'">class="select"</if>>还原</a>
					  <a href="{:RU('database/optimize')}" <if condition="ACTION_NAME eq 'lists'">class="optimize"</if>>优化</a>
				    <div class="clear"></div>
				</div>
	        <div class="clear"></div>
	    </div>
		
     <div class="toptit">备份数据表</div>
    <form id="form1" name="form1" method="post"  action="{:RU('Database/index')}">
 
	    <volist name="list" id="list">
		 <label style="width:200px; float:left; padding-left:40px; margin-top:5px; margin-bottom:10px " class="striking">
      <input name="tables[{$list}]" type="checkbox" style="vertical-align: middle" value="-1" checked="checked"/> 
     {$list}
     </label> 
					
	   </volist>
	    <div class="clear"></div>
		
			<div style="padding-left:40px; margin-top:20px; margin-bottom:15px;">
						<input type="button" class="admin_submit small gray"   value="全选"   id="selectAll" />
						<input type="button" class="admin_submit small gray"   value="全不选"   id="uncheckAll" />
						<input type="button" class="admin_submit small gray"   value="反选"   id="opposite" />
						</div>
			<input name="sizelimit" type="hidden" value="1024" />			
      
  </form>
  
  
    <empty name="list">
    <div class="admin_list_no_info">没有任何信息！</div>
    </empty>
	
	
	
	<div class="admin_list_foot">
			  <div class="btnbox">
				<input type="button" class="admin_submit"   value="开始备份"   id="J_backup"/>
				 
			  </div>
			  
			  
			  
	         
	</div>
	
  
</div>
<include file="public:footer" />
<script type="text/javascript">
$(document).ready(function()
{
	//
	$("#J_backup").click(function()
    {   
        $("form").submit();
    });
	
    $("#selectAll").click(function()
    {   
        $("form :checkbox").attr("checked",true);
        setbg();
    });
    $("#uncheckAll").click(function()
    {   
        $("form :checkbox").attr("checked",false);
        setbg();
    });
    $("#opposite").click(function()
    {   
        $("form :checkbox").each(function()
        {
        $(this).attr("checked")?$(this).attr("checked",false):$(this).attr("checked",true);
        });
        setbg();
    });
});
</script>
</body>
</html>

 